home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / spar372.zip / PARNET.I < prev    next >
Text File  |  1993-08-15  |  2KB  |  84 lines

  1.     IFND      DEVICES_PARNET_I
  2. DEVICES_PARNET_I SET 1
  3.  
  4. **
  5. **    $Filename: devices/parnet.i $
  6. **    $Revision: 2.0 $
  7. **    $Date: 93/08/15 $
  8. **
  9. **    external declarations for the parnet device
  10. **
  11.  
  12.      IFND     PARNET_SRC
  13.      UNIT   EQU APTR
  14.      DEVICE EQU APTR
  15.      ELSE
  16.      UNIT   EQU Unit
  17.      DEVICE EQU Device
  18.      ENDC
  19.  
  20.  STRUCTURE IOParReq,0
  21.     STRUCT    IO_MESSAGE,MN_SIZE
  22.     APTR    IO_DEVICE        * device node pointer    
  23.     APTR    IO_UNIT            * unit (protocol private)
  24.  
  25.     UWORD    IO_COMMAND        * device command
  26.     UBYTE    IO_FLAGS        * IOF_QUICK
  27.     BYTE    IO_ERROR        * error or warning num
  28.     ULONG    IO_ACTUAL        * actual number of bytes transferred 
  29.     ULONG    IO_LENGTH        * requested number bytes transferred 
  30.     APTR    IO_DATA            * points to data area          
  31.     ULONG    IO_OFFSET        * offset for block structured devices
  32.     UWORD    IO_PORT            
  33.     UWORD    IO_ADDR            
  34.     APTR    IO_DATA2         * more data
  35.     ULONG    IO_LENGTH2        * must be 0 if you do not use these fields
  36.         LABEL   IOParReq_Sizeof
  37.  
  38.          ENDM
  39.  
  40.  *
  41.  *  OpenDevice(), protocols.
  42.  *
  43.  *  DEFAULT
  44.  
  45. PRO_MASK    EQU $001F
  46. PRO_CONTROL    EQU $0000
  47. PRO_DGRAM    EQU $0001
  48. PRO_STREAM    EQU $0002
  49.  
  50. PRO_LAST    EQU PRO_STREAM
  51.  
  52.  *
  53.  *  Extended Command Set
  54.  *
  55.  
  56.  
  57. PPD_SETADDR    EQU (CMD_NONSTD+0)      *  set my network address 
  58. PPD_SETTO    EQU (CMD_NONSTD+1)      *  set network timeout
  59. PPD_SHUTDOWN    EQU (CMD_NONSTD+2)      *  shutdown a stream conn.
  60. PPD_CONNECT    EQU (CMD_NONSTD+3)      *  connect to a port
  61. PPD_LISTEN    EQU (CMD_NONSTD+5)      *  listen for a connection
  62.  
  63.  *
  64.  *  Extended Error codes    (placed in io_Actual for OpenDevice() call)
  65.  *
  66.  
  67. PPERR_NOPORTRES     EQU -32     *  can't get MR_PARALLELPORT misc res. 
  68. PPERR_NOBITSRES     EQU -33     *  can't get MR_PARALLELBITS misc res. 
  69. PPERR_NOTASK        EQU -34     *  can't create sub task               
  70. PPERR_NOINT        EQU -35     *  can't allocate CIAA-FLAG interrupt  
  71. PPERR_BADPROTOCOL   EQU -36     *  illegal protocol requested        
  72. PPERR_BADFLAGS        EQU -37     *  illegal flags for protocol        
  73. PPERR_ILLPORT        EQU -38     *  illegal port for protocol        
  74. PPERR_ILLPORTLSN    EQU -39     *  somebody already listening on that port!
  75. PPERR_NOTIMPL        EQU -40     *  not implemented yet.        
  76.  
  77. PPERR_WARN_OVFLOW   EQU -41     *  dgram, data overflow        
  78. PPERR_PORT_IN_USE   EQU -42     *  port is in use by another protocol    
  79. PPERR_NO_PORTS        EQU -43     *  no more ports available !!        
  80. PPERR_HOSTDOWN1     EQU -44     *  remote machine does not respond    
  81. PPERR_HOSTDOWN2     EQU -45     *  remote machine does not respond    
  82.  
  83.        ENDC DEVICES_PARNET_I
  84.